package main

import "fmt"

func main() {
const cPATH string="http://www.baidu.com"
const PI =3.14
fmt.Println(cPATH,PI)

//PI=3.16 常量不能直接像变量一样赋值

const LENGTH int =10
const WIDTH int =5
var area int
area =LENGTH*WIDTH
fmt.Println(area)

//var a=2
//var b=7
//const area2 =LENGTH*WIDTH
////const area3=a*b 变量不能做运算再赋值给常量
//fmt.Println(area2,a,b)

const c = "memeda"
const con2=len(c)
fmt.Println(con2)

const a2,b2,c2 =1,false,"str"
fmt.Println(a2,b2,c2)

	const (
		a3=10
		b3=false
		a5=3.14
	)
fmt.Println(a3,b3,a5)

const(
	x uint16=16 //16
	y //16
	s="abc" //abc
	z //abc
)
fmt.Println(x,y,s,z)

const(
	sunday=0
	monday=1
	tuesday=2
	wednesday=3
	thursday=4
	friday=5
	saturday=6
)
}